public class DataObjects
extends java.lang.Object
| Constructor and Description |
|---|
DataObjects(java.lang.String dataFolderName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAbsPath() |
java.io.Serializable |
loadData(java.lang.String agentClassName,
java.lang.String prefProfName)
Loads the data of the agent, by the agentClassName and the prefProfName.
|
boolean |
restartFolder()
Restarts the folder "theFolder", meaning it deletes all files in it
and then creates a new empty folder with the same name.
|
boolean |
saveData(java.io.Serializable dataToSave,
java.lang.String agentClassName,
java.lang.String prefProfName)
Saves dataToSave of the agent with class agentClassName for a preference
profile prefProfName.
|
public boolean restartFolder()
public boolean saveData(java.io.Serializable dataToSave,
java.lang.String agentClassName,
java.lang.String prefProfName)
dataToSave - a Serializable object to saveagentClassName - is the class name of the agent who wants to save the dataprefProfName - is the preference profile for which the agent wants to save datapublic java.io.Serializable loadData(java.lang.String agentClassName,
java.lang.String prefProfName)
agentClassName - is the class name of the agent who wants to load the dataprefProfName - is the preference profile for which the agent wants to load the datapublic java.lang.String getAbsPath()